package com.celesea.workflow.demo.v1.controller.request;

import com.celesea.framework.vo.DictionaryVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author JackYuan
 * @create 2017-11-18 15:45
 */

@ApiModel(value = "新增Demo")
public class PostRequest {

    @NotNull
    @Length(min = 1, max = 20)
    @ApiModelProperty(value = "title")
    private String title;

    @NotNull
    @Length(min = 1, max = 100)
    @ApiModelProperty(value = "content")
    private String content;

    @ApiModelProperty(value = "users")
    private List<DictionaryVo> users;

    @ApiModelProperty(value = "groups")
    private List<DictionaryVo> groups;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<DictionaryVo> getUsers() {
        return users;
    }

    public void setUsers(List<DictionaryVo> users) {
        this.users = users;
    }

    public List<DictionaryVo> getGroups() {
        return groups;
    }

    public void setGroups(List<DictionaryVo> groups) {
        this.groups = groups;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
